package ${packageBase}.${tableBean.tableNameNoDash}.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
<#if (tableBean.hasDateColumn)>
import java.util.Date;
</#if>
<#if (tableBean.hasBigDecimal)>
import java.math.BigDecimal;
</#if>
@Table(name="${tableBean.tableName}")
public class ${tableBean.tableNameCapitalized}Entity implements Serializable{
<#list tableBean.columnBeanList as columnBean>
    <#if ('' != columnBean.columnComment)>
    /**
     * ${columnBean.columnComment}
     **/
    </#if>
    private ${columnBean.columnType} ${columnBean.columnNameNoDash};

</#list>
    public ${tableBean.tableNameCapitalized}Entity() {
    }

    public ${tableBean.tableNameCapitalized}Entity(<#list tableBean.columnBeanList as columnBean>${columnBean.columnType} ${columnBean.columnNameNoDash}<#if columnBean_has_next>, </#if></#list>) {
    <#list tableBean.columnBeanList as columnBean>
        this.${columnBean.columnNameNoDash} = ${columnBean.columnNameNoDash};
    </#list>
    }

<#list tableBean.columnBeanList as columnBean>
    public void set${columnBean.columnNameCapitalized}(${columnBean.columnType} ${columnBean.columnNameNoDash}) {
        this.${columnBean.columnNameNoDash} = ${columnBean.columnNameNoDash};
    }
	 <#if (columnBean.priKey)>
	 @Id
	 </#if>
    public ${columnBean.columnType} get${columnBean.columnNameCapitalized}() {
        return ${columnBean.columnNameNoDash};
    }

</#list>
}
